using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using FutureOpen.Web.Pages;
using FutureOpen.Core.func.sql;
using FutureOpen.Core.func.util;

public partial class controls_OverviewCatGroups : System.Web.UI.UserControl
{
    private int cid;
    private PageBase pbase;
    protected void Page_Load(object sender, EventArgs e)
    {
        pbase = (PageBase)this.Page;
        pbase.PageInit();

        cid = pbase.catid;
        if (!Page.IsPostBack)
        {
            LoadCatGroups();
        }
     
    }
    public void LoadCatGroups()
    {
        if (cid < 0)
        {
            cid = 0;
        }
       // DataSet ds = GroupProvider.GetGroupByCat(cid, 0, 100);
        if (CatItem.index == null) CatItem.Init();

        //TODO: load category and sub category by cat id
        
    }
}

